/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hcht.xrlh.jcxx.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 检查任务Entity
 * @author lrz
 * @version 2016-12-05
 */
public class DrJcxz extends DataEntity<DrJcxz> {
	
	private static final long serialVersionUID = 1L;
	private DrJcxx drJcxx;		// 检查ID 父类
	private String xzxh;		// 小组序号
	private String xzmc;		// 小组名称
	private User user;		// 小组长ID
	private String xzzmc;		// 小组长姓名
	
	public DrJcxz() {
		super();
	}

	public DrJcxz(String id){
		super(id);
	}

	public DrJcxz(DrJcxx drJcxx){
		this.drJcxx = drJcxx;
	}

	@Length(min=1, max=64, message="检查ID长度必须介于 1 和 64 之间")
	public DrJcxx getDrJcxx() {
		return drJcxx;
	}

	public void setDrJcxx(DrJcxx drJcxx) {
		this.drJcxx = drJcxx;
	}
	
	@Length(min=0, max=10, message="小组序号长度必须介于 0 和 10 之间")
	public String getXzxh() {
		return xzxh;
	}

	public void setXzxh(String xzxh) {
		this.xzxh = xzxh;
	}
	
	@Length(min=0, max=255, message="小组名称长度必须介于 0 和 255 之间")
	public String getXzmc() {
		return xzmc;
	}

	public void setXzmc(String xzmc) {
		this.xzmc = xzmc;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=255, message="小组长姓名长度必须介于 0 和 255 之间")
	public String getXzzmc() {
		return xzzmc;
	}

	public void setXzzmc(String xzzmc) {
		this.xzzmc = xzzmc;
	}
	
}